import request from '@/utils/request'

// 查询用户二维码列表
export function listCarFlow(query) {
  return request({
    url: '/user/CarFlow/list',
    method: 'get',
    params: query
  })
}

// 查询用户二维码详细
export function getCarFlow(id) {
  return request({
    url: '/user/CarFlow/' + id,
    method: 'get'
  })
}

// 新增用户二维码
export function addCarFlow(data) {
  return request({
    url: '/user/CarFlow',
    method: 'post',
    data: data
  })
}

// 修改用户二维码
export function updateCarFlow(data) {
  return request({
    url: '/user/CarFlow',
    method: 'put',
    data: data
  })
}

// 删除用户二维码
export function delCarFlow(id) {
  return request({
    url: '/user/CarFlow/' + id,
    method: 'delete'
  })
}
